<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/arc.rssview.class.php");
require_once(DEDEINC."/arc.partview.class.php");
if(empty($dopost)) $dopost = '';

if($dopost=="make")
{
	if(is_array($maps))
	{
		$result = "生成地图：";
		$pv = new PartView();
		foreach($maps as $m)
		{
			$pv->SetTemplet($cfg_basedir.$cfg_templets_dir.$cfg_plus_dir.'/'.$m);
			$pv->SaveToHtml(dirname(__FILE__).'/../'. $m);
			$result .= "<a href='../{$m}' target='_blank'>{$m}</a>&nbsp;&nbsp;";
		}
	}
	echo $result;
	exit();
}

include DedeInclude('templets/makehtml_sitemap.htm');